#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <error.h>
#include <string.h>
#include <unistd.h>


int main(int argc, char **argv){
    if(argc != 2){
        printf("Usage: %s <file> \n", argv[0]);
    }
    int fd = open(argv[1],O_RDONLY);
    printf("fd = %d\n", fd);
    while(1)
    {
        sleep(100);
    }
    return 0;
}